﻿using System;

namespace Medicalsystem.MCP.FormDesigner.Property
{
    /// <summary>
    /// 显示中文属性名称
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class ShowChineseAttribute : Attribute
    {
        private string _chineseChar = "";

        /// <summary>
        /// 显示中文属性名称
        /// </summary>
        /// <param name="ChineseChar"></param>
        public ShowChineseAttribute(string ChineseChar)
        {
            this._chineseChar = ChineseChar;
        }

        /// <summary>
        /// 中文名称
        /// </summary>
        public string ChineseChar
        {
            get
            {
                return this._chineseChar;
            }
        }

        public override string ToString()
        {
            return this._chineseChar;
        }
    }
}